﻿namespace WMS6.Web.BaseInfoServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Diagnostics;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="AuditDataQueryEntity", Namespace="http://schemas.datacontract.org/2004/07/WMS6.QueryEntity")]
    public class AuditDataQueryEntity : BaseQuery
    {
        [OptionalField]
        private string ActionField;
        [OptionalField]
        private string ColNameField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private string CreatedDateField;
        [OptionalField]
        private string EndTimeField;
        [OptionalField]
        private string ForDeleteField;
        [OptionalField]
        private string ForInsertField;
        [OptionalField]
        private string ForUpdateField;
        [OptionalField]
        private string NewValueField;
        [OptionalField]
        private string OldValueField;
        [OptionalField]
        private string PrimaryKeyField;
        [OptionalField]
        private string RowIDField;
        [OptionalField]
        private string StartTimeField;
        [OptionalField]
        private string TableNameField;

        [DataMember]
        public string Action
        {
            get
            {
                return this.ActionField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ActionField, value))
                {
                    this.ActionField = value;
                    base.RaisePropertyChanged("Action");
                }
            }
        }

        [DataMember]
        public string ColName
        {
            get
            {
                return this.ColNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ColNameField, value))
                {
                    this.ColNameField = value;
                    base.RaisePropertyChanged("ColName");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    base.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public string CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedDateField, value))
                {
                    this.CreatedDateField = value;
                    base.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string EndTime
        {
            get
            {
                return this.EndTimeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.EndTimeField, value))
                {
                    this.EndTimeField = value;
                    base.RaisePropertyChanged("EndTime");
                }
            }
        }

        [DataMember]
        public string ForDelete
        {
            get
            {
                return this.ForDeleteField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ForDeleteField, value))
                {
                    this.ForDeleteField = value;
                    base.RaisePropertyChanged("ForDelete");
                }
            }
        }

        [DataMember]
        public string ForInsert
        {
            get
            {
                return this.ForInsertField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ForInsertField, value))
                {
                    this.ForInsertField = value;
                    base.RaisePropertyChanged("ForInsert");
                }
            }
        }

        [DataMember]
        public string ForUpdate
        {
            get
            {
                return this.ForUpdateField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ForUpdateField, value))
                {
                    this.ForUpdateField = value;
                    base.RaisePropertyChanged("ForUpdate");
                }
            }
        }

        [DataMember]
        public string NewValue
        {
            get
            {
                return this.NewValueField;
            }
            set
            {
                if (!object.ReferenceEquals(this.NewValueField, value))
                {
                    this.NewValueField = value;
                    base.RaisePropertyChanged("NewValue");
                }
            }
        }

        [DataMember]
        public string OldValue
        {
            get
            {
                return this.OldValueField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OldValueField, value))
                {
                    this.OldValueField = value;
                    base.RaisePropertyChanged("OldValue");
                }
            }
        }

        [DataMember]
        public string PrimaryKey
        {
            get
            {
                return this.PrimaryKeyField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PrimaryKeyField, value))
                {
                    this.PrimaryKeyField = value;
                    base.RaisePropertyChanged("PrimaryKey");
                }
            }
        }

        [DataMember]
        public string RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RowIDField, value))
                {
                    this.RowIDField = value;
                    base.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string StartTime
        {
            get
            {
                return this.StartTimeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StartTimeField, value))
                {
                    this.StartTimeField = value;
                    base.RaisePropertyChanged("StartTime");
                }
            }
        }

        [DataMember]
        public string TableName
        {
            get
            {
                return this.TableNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TableNameField, value))
                {
                    this.TableNameField = value;
                    base.RaisePropertyChanged("TableName");
                }
            }
        }
    }
}

